Skip to content

fix: handle case where constraint.relations=None#33

Merged
jsstevenson merged 4 commits intomainfrom
fix-nonetype-relations-error
Feb 12, 2026
Merged

fix: handle case where constraint.relations=None#33
jsstevenson merged 4 commits intomainfrom
fix-nonetype-relations-error

Conversation

@jsstevenson
Copy link
Contributor

If the constraint's relations property is set to None (which is legal), line 183 raises a NoneTypeError, which is not properly handled by validate_constraints. This small fix makes errors a bit more interpretable in those cases.

priority:low

Copy link
Collaborator

@korikuzma korikuzma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, can you add or update a test for this?

@jsstevenson
Copy link
Contributor Author

...huh
Screenshot 2026-02-12 at 9 07 18 AM

@jsstevenson jsstevenson marked this pull request as draft February 12, 2026 14:10
@jsstevenson jsstevenson marked this pull request as ready for review February 12, 2026 14:23
@jsstevenson jsstevenson merged commit 055be63 into main Feb 12, 2026
8 checks passed
@jsstevenson jsstevenson deleted the fix-nonetype-relations-error branch February 12, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants